import {
	Request
} from './request.js';
import { globalUserInfo } from '../src/utils/userInfo.js'

export default {
	// 测试专用1
	geterrg(data) {
		return Request({
			url: '/logJs/Index',
			data: data,
			method: "POST"
		})
	},
	// 获取用户资产信息
	getassets(data) {
		return Request({
			url: '/Config/getConfig',
			data: data,
			method: "GET"
		})
	},
	// 获取平台收益情况
	getPlatformRevenue(data) {
		return Request({
			url: '/Virtualaddress/getVirtualaddress',
			data: data,
			method: "POST"
		})
	},
	// 获取平台问答
	getQuestion(data) {
		return Request({
			url: '/Qa/getQa',
			data: data,
			method: "GET"
		})
	},
	// 注册检查
	registrationCheck(data) {
		return Request({
			url: '/Fishpond/getUserInfo',
			data: data,
			method: "GET",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
	// 授权申请
	getAuthorize(data) {
		return Request({
			url: '/Fishpond/authorizedStatusUpdate',
			data: data,
			method: "GET"
		})
	},
	// 锁仓申请
	lockWarehouse(data) {
		return Request({
			url: '/Lockup/addLockup',
			data: data,
			method: "POST",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
	// 钱包详情
	assetDetails(data) {
		return Request({
			url: '/Fishpond/getDetailedBalance',
			data: data,
			method: "GET",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
	// 提领
	Collar(data) {
		return Request({
			url: '/Withdraw/createWithdraw',
			data: data,
			method: "POST",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
	// 收益记录
	incomeRecord(data) {
		return Request({
			url: '/Mining/getMining',
			data: data,
			method: "GET",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
	// 提现记录
	cashWithdrawalRecord(data) {
		return Request({
			url: '/Withdraw/getWithdrawal',
			data: data,
			method: "GET",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
	// 系统通知
	SystemMessages(data) {
		return Request({
			url: '/Notify/notifyPop',
			data: data,
			method: "GET",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
	// 系统通知已读，状态更改
	MessageReading(data) {
		return Request({
			url: '/Notify/setRead',
			data: data,
			method: "GET",
			header: {
				"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
				lang:globalUserInfo.lang,
			}
		})
	},
}